<extend name="Base:dialog" />
<block name="dialog-header">
<h3>订单详情</h3>
</block>
<block name="dialog-body">
<div class="row">
	<div class="from-group">
		<label class="col-md-4">下单时间：</label>
		<label class="col-md-8">{$info[0].cdate}  {$info[0].ctime}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">配送时间：</label>
		<label class="col-md-8">{$info[0].ptime}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">订单商家：</label>
		<label class="col-md-8">{$info[0].account}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">联系人姓名：</label>
		<label class="col-md-8">{$info[0].name}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">联系人电话：</label>
		<label class="col-md-8">{$info[0].phone_number}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">地址：</label>
		<label class="col-md-8">{$info[0].area}  {$info[0].address}</label>
	</div>
	<div class="from-group">
		<label class="col-md-4">备注：</label>
		<label class="col-md-8">{$info[0].remark}</label>
	</div>
</div>
<table
	class="table table-striped table-bordered bootstrap-datatable responsive">
	<thead>
		<tr>
			<th>序号</th>
			<th>菜品名</th>
			<th>菜品数量</th>
			<th>菜品单价</th>
			<th>菜品总价</th>
		</tr>
	</thead>
	<tbody id="tbody">
		<foreach name="list" item="v"> 
		<tr>
			<td>{++$i}</td>
			<td>{$v.food_name}<small>({$v.category})</small></td>
			<td>{$v.num}{$v.unit}</td>
			<td>￥{$v.price}</td>
			<td>￥{$v["price"]*$v["num"]}</td>
		</tr>
		</foreach>
	</tbody>
	<tfoot>
		<tr>
			<th colspan="6"><span class="red">总价：￥{$info[0].total_price}</span></th>
		</tr>
	</tfoot>
</table>
</block>